package com.gjsh.a_static;

public class Test01 {
    public static void main(String[] args) {
        //先个静态成员赋值
        Srtudent.className = "1111";
        Srtudent s1 = new Srtudent();
        s1.name = "张三";
        s1.age = 28;
        
        System.out.println(s1.name + "," + s1.age + "," + Srtudent.className);

        System.out.println("------------------");


        Srtudent s2 = new Srtudent();
        s2.name = "李四";
        s2.age = 26;

        System.out.println(s2.name + "," + s2.age + "," + Srtudent.className);
    }

}
